import request from '@/utils/request'

// 获取部门列表
export const getDepartmentList = () => request.get('api/department/')

// 创建新部门
export const addDepartment = (data) => request.post('api/department/', data)

// 更新部门信息
export const updateDepartment = (id, data) => request.put(`api/department/${id}/`, data)

// 删除部门
export const deleteDepartment = (id) => request.delete(`api/department/${id}/`)
